package com.weme.mine.viewmode

import com.weme.common.base.BaseViewModel
import com.weme.common.network.NetWorkUrl
import dev.kratos.api.user_server.v1.EditUserInfoRequest
import dev.kratos.api.user_server.v1.GetAlbumRequest
import dev.kratos.api.user_server.v1.GetUserInfoRequest
import dev.kratos.api.user_server.v1.UploadAlbumRequest

class EdUserInfoViewMode:BaseViewModel() {
    fun uploaderApi(req: UploadAlbumRequest) {
        val reqByte = req.toByteArray()
        sendNetworkRequest(reqByte, NetWorkUrl.UploadAlbum)
    }
    fun  getAlubm(req: GetAlbumRequest){
        sendNetworkRequest(req.toByteArray(),
            NetWorkUrl.GetAlbum )
    }
    fun getMseeageList(req: GetUserInfoRequest) {
        val reqByte = req.toByteArray()
        sendNetworkRequest(reqByte, NetWorkUrl.GetUserInfoIn)
    }
    fun setUserInfoApi(req:EditUserInfoRequest){
        sendNetworkRequest(req.toByteArray(),
            NetWorkUrl.EditUserInfo )
    }
}